import Event from "./event";

export default class ProgressEvent extends Event {
  static PROGRESS = "progress";
  constructor(n, r) {
    super(n, ProgressEvent.PROGRESS);
    this.percent = r;
  }
  percent = 0;
  clone(e?) {
    return (
      (e = arguments.length > 0 ? e : this.target), new ProgressEvent(e, this.percent)
    );
  }
}
